package com.hxjb.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class RegExpressionTools {

    public static final boolean isMobilePhone(String str) {
        String check = "^((13[0-9])|(14[0-9])|(15[0-9])|(18[0-9])|(17[0-9]))\\d{8}$";
        Pattern regex = Pattern.compile(check);
        Matcher matcher = regex.matcher(str);
        boolean isMatched = matcher.matches();
        return isMatched;
    }


}